home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / linux / system / LinuxConsole 0.4 / linuxconsole0.4install-en.iso / linuxconsole0.4.lcm / local / linuxconsole / share / alsa / cards / CS46xx.conf < prev    next >
Encoding:
Text File  |  2004-03-26  |  2.1 KB  |  169 lines

  1. #
  2. # Configuration for the CS46xx chip
  3. #
  4.  
  5. <confdir:pcm/front.conf>
  6.  
  7. CS46xx.pcm.front.0 {
  8.     @args [ CARD  ]
  9.     @args.CARD {
  10.         type string
  11.     }
  12.     type hw
  13.     card $CARD
  14.     device 0
  15. }    
  16.  
  17. <confdir:pcm/rear.conf>
  18.  
  19. CS46xx.pcm.rear.0 {
  20.     @args [ CARD ]
  21.     @args.CARD {
  22.         type string
  23.     }
  24.     type hw
  25.     card $CARD
  26.     device 1
  27. }    
  28.  
  29. <confdir:pcm/center_lfe.conf>
  30.  
  31. CS46xx.pcm.center_lfe.0 {
  32.     @args [ CARD ]
  33.     @args.CARD {
  34.         type string
  35.     }
  36.     type hw
  37.     card $CARD
  38.     device 3
  39. }    
  40.  
  41. <confdir:pcm/surround40.conf>
  42.  
  43. CS46xx.pcm.surround40.0 {
  44.     @args [ CARD ]
  45.     @args.CARD {
  46.         type string
  47.     }
  48.     type multi
  49.     slaves [
  50.         {
  51.             pcm {
  52.                 @func concat
  53.                 strings [
  54.                     "cards.CS46xx.pcm.front.0:CARD=" $CARD
  55.                 ]
  56.             }
  57.             channels 2
  58.         }
  59.         {
  60.             pcm {
  61.                 @func concat
  62.                 strings [
  63.                     "cards.CS46xx.pcm.rear.0:CARD=" $CARD
  64.                 ]
  65.             }
  66.             channels 2
  67.         }
  68.     ]
  69.     bindings [
  70.         { slave 0 channel 0 }
  71.         { slave 0 channel 1 }
  72.         { slave 1 channel 0 }
  73.         { slave 1 channel 1 }
  74.     ]
  75. }
  76.  
  77. <confdir:pcm/surround51.conf>
  78.  
  79. CS46xx.pcm.surround51.0 {
  80.     @args [ CARD ]
  81.     @args.CARD {
  82.         type string
  83.     }
  84.     type multi
  85.     slaves [
  86.         {
  87.             pcm {
  88.                 @func concat
  89.                 strings [
  90.                     "cards.CS46xx.pcm.front.0:CARD=" $CARD
  91.                 ]
  92.             }
  93.             channels 2
  94.         }
  95.         {
  96.             pcm {
  97.                 @func concat
  98.                 strings [
  99.                     "cards.CS46xx.pcm.rear.0:CARD=" $CARD
  100.                 ]
  101.             }
  102.             channels 2
  103.         }
  104.         {
  105.             pcm {
  106.                 @func concat
  107.                 strings [
  108.                     "cards.CS46xx.pcm.center_lfe.0:CARD=" $CARD
  109.                 ]
  110.             }
  111.             channels 2
  112.         }
  113.     ]
  114.     bindings [
  115.         { slave 0 channel 0 }
  116.         { slave 0 channel 1 }
  117.         { slave 1 channel 0 }
  118.         { slave 1 channel 1 }
  119.         { slave 2 channel 0 }
  120.         { slave 2 channel 1 }
  121.     ]
  122. }
  123.  
  124. <confdir:pcm/iec958.conf>
  125.  
  126. CS46xx.pcm.iec958.0 {
  127.     @args [ CARD AES0 AES1 AES2 AES3 ]
  128.     @args.CARD {
  129.         type string
  130.     }
  131.     @args.AES0 {
  132.         type integer
  133.     }
  134.     @args.AES1 {
  135.         type integer
  136.     }
  137.     @args.AES2 {
  138.         type integer
  139.     }
  140.     @args.AES3 {
  141.         type integer
  142.     }
  143.     type hooks
  144.     slave.pcm {
  145.         type hw
  146.         card $CARD
  147.         device 2
  148.     }
  149.     hooks.0 {
  150.         type ctl_elems
  151.         hook_args [
  152.             {
  153.                 name "IEC958 Output Switch"
  154.                 lock true
  155.                 preserve true
  156.                 value 1
  157.             }
  158.             {
  159.                 interface PCM
  160.                 name "IEC958 Playback PCM Stream"
  161.                 device 0
  162.                 lock true
  163.                 preserve true
  164.                 value [ $AES0 $AES1 $AES2 $AES3 ]
  165.             }
  166.         ]
  167.     }
  168. }
  169.